package com.xiaoshuidi.cloud.module.report.convert.finance;

import com.xiaoshuidi.cloud.module.report.controller.finance.vo.*;
import com.xiaoshuidi.cloud.module.report.dal.DO.report.CollectInAdvanceDO;
import com.xiaoshuidi.cloud.module.report.dal.DO.report.IncomeDetailReportDO;
import com.xiaoshuidi.cloud.module.report.dal.DO.report.ReceivableDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 权责收入 转换类
 */
@Mapper
public interface ReceivableConvert {

    ReceivableConvert INSTANCE = Mappers.getMapper(ReceivableConvert.class);

    ReceivableDO convertAdvance2Receivable(CollectInAdvanceDO advanceDO);


    List<ReceivableRespVO> convertReceivableDOForPage(List<ReceivableDO> advanceDOList);

    List<ReceivableExportRespVO> convertDOList2Export(List<ReceivableDO> advanceDOList);



}
